package com.henry.c05.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Data
public class School implements  ISchool {
    @Autowired()
    @Qualifier(value = "klass01")
    Klass klass;

    @Resource(name="student01")
    Student student;

    @Override
    public void ding() {
        System.out.println("ding from school,student info =>"+student.toString()+" klass info =>"+klass.toString());
    }


}
